<?php
/**
 * Description: 公共部分路由
 * Author: hezhizheng
 * Created by Created by Panxsoft.
 */
use Illuminate\Support\Facades\Route;

/**
 * 软件版本信息
 *
 * @see \App\Http\Controllers\Common\VersionController
 */
Route::resource('/version', 'VersionController');

/**
 * 有赞订单重定向
 *
 * @see \App\Http\Controllers\Common\YouzanOrderController::redirectUrl()
 */
Route::get('/redirect-youzan-order-url', 'YouzanOrderController@redirectUrl')
    ->name(App\Http\Controllers\Common\YouzanOrderController::ROUTES['redirectUrl']);

/**
 * DataV数据统计
 *
 * @see \App\Http\Controllers\Common\DataVController::show()
 */
Route::get('/{_ratio}', 'DataVController@show');

/**
 * 设置语言信息
 *
 * @see \App\Http\Controllers\Common\SwitchLanguageController::switchLanguage()
 */
Route::post('/switch-language', 'SwitchLanguageController@switchLanguage');

